{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 16 11:24:01 2006) by ROOT version5.08/00 TCanvas *c1 = new TCanvas("c1", "c1",32,386,500,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-0.153846,0.14,1.12821,0.54); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.16); c1->SetBottomMargin(0.15); c1->SetFrameFillColor(0); c1->SetFrameLineWidth(2); c1->SetFrameLineWidth(2); Double_t xAxis[16] = {0.0, 1.0, 2.0, 2.49, 2.51, 2.99, 3.01, 3.49, 3.51, 3.99, 4.01, 4.49, 4.51, 4.99, 5.0, 6.0}; TH1 *EvsC1 = new TH1F("EvsC1","SigmaE/E vs Cost 1",15, xAxis); EvsC1->SetBinContent( 4, 3.763); EvsC1->SetBinContent( 6, 3.648); EvsC1->SetBinContent( 8, 3.700); EvsC1->SetBinContent(10, 3.696); EvsC1->SetBinContent(12, 3.810); EvsC1->SetBinError( 4, 0.069); EvsC1->SetBinError( 6, 0.067); EvsC1->SetBinError( 8, 0.050); EvsC1->SetBinError( 10, 0.067); EvsC1->SetBinError( 12, 0.049); g1 = new TGraphErrors(5); g1->SetLineColor(4); g1->SetLineWidth(2); g1->SetLineStyle(1); g1->SetMarkerColor(4); g1->SetMarkerStyle(25); g1->SetMarkerSize(1.3); g1->SetPoint(0,2.5, 3.763); g1->SetPoint(1,3.0, 3.648); g1->SetPoint(2,3.5, 3.700); g1->SetPoint(3,4.0, 3.696); g1->SetPoint(4,4.5, 3.810); g1->SetPointError(0,0,0.069); g1->SetPointError(1,0,0.067); g1->SetPointError(2,0,0.050); g1->SetPointError(3,0,0.067); g1->SetPointError(4,0,0.048); EvsC1->SetMarkerColor(4); EvsC1->SetMarkerStyle(25); EvsC1->SetMarkerSize(1.3); EvsC1->SetLineColor(4); TH1 *EvsC2 = new TH1F("EvsC2","SigmaE/E vs Cost 1",15, xAxis); g2 = new TGraphErrors(5); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(1); g2->SetMarkerColor(2); g2->SetMarkerStyle(21); g2->SetMarkerSize(1.3); g2 = new TGraphErrors(5); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(1); g2->SetMarkerColor(2); g2->SetMarkerStyle(21); g2->SetMarkerSize(1.3); g2->SetPoint(0,2.5, 3.339); g2->SetPoint(1,3.0, 3.199); g2->SetPoint(2,3.5, 3.074); g2->SetPoint(3,4.0, 2.940); g2->SetPoint(4,4.5, 2.947); g2->SetPointError(0,0,0.056); g2->SetPointError(1,0,0.059); g2->SetPointError(2,0,0.041); g2->SetPointError(3,0,0.049); g2->SetPointError(4,0,0.038); g3 = new TGraphErrors(5); g3->SetLineColor(6); g3->SetLineWidth(2); g3->SetLineStyle(1); g3->SetMarkerColor(6); g3->SetMarkerStyle(24); g3->SetMarkerSize(1.3); g3->SetPoint(0,2.5, 3.436); g3->SetPoint(1,3.0, 3.278); g3->SetPoint(2,3.5, 3.147); g3->SetPoint(3,4.0, 3.026); g3->SetPoint(4,4.5, 3.132); g3->SetPointError(0,0,0.063); g3->SetPointError(1,0,0.060); g3->SetPointError(2,0,0.042); g3->SetPointError(3,0,0.055); g3->SetPointError(4,0,0.064); g4 = new TGraphErrors(5); g4->SetLineColor(1); g4->SetLineWidth(2); g4->SetLineStyle(1); g4->SetMarkerColor(1); g4->SetMarkerStyle(20); g4->SetMarkerSize(1.3); g4->SetPoint(0,2.5, 3.664); g4->SetPoint(1,3.0, 3.436); g4->SetPoint(2,3.5, 3.299); g4->SetPoint(3,4.0, 3.253); g4->SetPoint(4,4.5, 3.106); g4->SetPointError(0,0,0.068); g4->SetPointError(1,0,0.066); g4->SetPointError(2,0,0.051); g4->SetPointError(3,0,0.061); g4->SetPointError(4,0,0.058); // EvsC4->SetLineWidth(2); EvsC1->SetMinimum(2.5); EvsC1->SetMaximum(4.5); EvsC1->SetStats(0); EvsC1->SetLineWidth(1); EvsC1->GetXaxis()->SetTitle("B Field/Tesla"); EvsC1->GetXaxis()->SetLabelSize(0.05); EvsC1->GetXaxis()->SetTitleSize(0.065); EvsC1->GetXaxis()->SetTitleOffset(0.9); EvsC1->GetYaxis()->SetNdivisions(505); EvsC1->GetYaxis()->SetTitle("rms_{90}/E_{jet} [%]"); EvsC1->GetYaxis()->SetLabelSize(0.05); EvsC1->GetYaxis()->SetTitleSize(0.065); EvsC1->GetYaxis()->SetTitleOffset(1.15); EvsC1->GetXaxis()->SetRange(3,14); EvsC1->Draw("p"); g1->Draw("pl same"); g2->Draw("pl same"); g3->Draw("pl same"); g4->Draw("pl same"); TF1 *f45 = new TF1("f45" ,"100*sqrt(0.034*0.034+0.0203*0.0203*(( 45/100)**0.7)*(3.5/x)**0.64 )",1,5); TF1 *f100 = new TF1("f100","100*sqrt(0.024*0.024+0.0203*0.0203* (3.5/x)**0.64 )",1,5); TF1 *f180 = new TF1("f180","100*sqrt(0.019*0.019+0.0203*0.0203*((180/100)**0.7)*(3.5/x)**0.64 )",1,5); TF1 *f250 = new TF1("f250","100*sqrt(0.018*0.018+0.0203*0.0203*((250/100)**0.7)*(3.5/x)**0.64 )",1,5); // f45->Draw("same"); // f100->Draw("same"); // f180->Draw("same"); // f250->Draw("same"); TLatex * tex = new TLatex(2.75,4.25,"r_{ECAL} = 1825 mm"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLatex * tex = new TLatex(2.15,4.3,"a)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.2,0.19,0.35,0.37,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.04); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL"," 45 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(25); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","100 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","180 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(6); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","250 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); Double_t *dum = 0; TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(4); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.248); pline->SetPoint(1,70,0.248); pline->Draw(""); TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(2); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.3073); pline->SetPoint(1,70,0.3073); pline->Draw(""); TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(6); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.422); pline->SetPoint(1,70,0.422); pline->Draw(""); TPolyLine *pline = new TPolyLine(2,dum,dum,""); pline->SetFillColor(19); pline->SetLineColor(1); pline->SetLineStyle(3); pline->SetLineWidth(1); pline->SetPoint(0,30,0.522); pline->SetPoint(1,70,0.522); pline->Draw(""); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("b_sige.gif"); c1->SaveAs("b_sige.eps"); }